package com.twm.drug.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twm.drug.common.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 药品出入库
 */
@Data
@TableName(value = "owinfo") //对应数据库的表
public class Owinfo implements Serializable { //Serializable：序列化：能转换成json格式
    /*主键*/
    @TableField(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /*药品名称*/
    private String dname;

    /*出库还是入库*/
    private String type;

    /*数量*/
    private Integer count;

    /*操作人*/
    private String operator;

    /*操作时间*/
    private Date createtime;

}

